import java.util.Scanner;

public class carTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        car[] arr = new car[3];
        for (int i = 0; i < arr.length; i++) {
            car c = new car();
            System.out.println("请输入车的品牌");
            String Brand = sc.next();
            c.setBrand(Brand);
            System.out.println("请输入车的价格");
            int Price = sc.nextInt();
            c.setPrice(Price);
            System.out.println("请输入车的颜色");
            String Color = sc.next();
            c.setColor(Color);
            arr[i] = c;
        }
        for (int i = 0; i < arr.length; i++) {
            car number = arr[i];
            System.out.println(number.getBrand()+" "+number.getColor()+" "+number.getPrice());


        }






    }
}
